home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Utility Spectacular / Text / info-for-Emacs-1.12d folder / info / dired.info-1 < prev    next >
Encoding:
Text File  |  1993-12-30  |  46.9 KB  |  1,243 lines  |  [TEXT/EMAC]

  1. Info file dired.info, produced by Makeinfo, -*- Text -*- from input
  2. file dired.texi.
  3.  
  4.    This file documents Tree Dired, the GNU Emacs Directory Browser,
  5. and most of the extra features available as an option.
  6.  
  7.    Copyright (C) 1991, 1992 Free Software Foundation
  8.  
  9.    Permission is granted to make and distribute verbatim copies of
  10. this manual provided the copyright notice and this permission notice
  11. are preserved on all copies.
  12.  
  13.    Permission is granted to copy and distribute modified versions of
  14. this manual under the conditions for verbatim copying, provided also
  15. that the section entitled "GNU General Public License" is included
  16. exactly as in the original, and provided that the entire resulting
  17. derived work is distributed under the terms of a permission notice
  18. identical to this one.
  19.  
  20.    Permission is granted to copy and distribute translations of this
  21. manual into another language, under the above conditions for modified
  22. versions, except that the section entitled "GNU General Public
  23. License" may be included in a translation approved by the author
  24. instead of in the original English.
  25.  
  26.  
  27. 
  28. File: dired.info,  Node: Top,  Next: Dired,  Prev: (dir),  Up: (dir)
  29.  
  30.    This file documents Tree Dired (version 6), the GNU Emacs
  31. Directory Editor, including the optional "Dired Extra" features.
  32.  
  33.    Tree Dired is an enhanced version of the Classic (18.xx Emacs)
  34. Dired and will be the Dired of Emacs 19.  It is known to work with
  35. Emacs 18.55 and 18.57 (and probably most earlier versions).
  36.  
  37. Revision of this manual:
  38.  
  39. $Id: dired.texi,v 2.29 1992/05/14 11:41:35 sk RelBeta $
  40.  
  41. Report bugs to:
  42.  
  43.      Sebastian Kremer <sk@thp.uni-koeln.de>
  44.  
  45. * Menu:
  46.  
  47. * Dired::            Dired, the Directory Editor
  48. * Tree Dired Extra::        Tree Dired Extra features
  49. * Dired Internals::        Dired Internals
  50. * Dired Known Problems::    Known Problems with Dired
  51.  
  52.  -- Indices --
  53.  
  54. * Dired Variable Index::    
  55. * Dired Function Index::    
  56. * Dired Key Index::        
  57. * Dired Concept Index::        
  58.  
  59.  -- The Detailed Node Listing --
  60.  
  61. Dired, the Directory Editor
  62.  
  63. * Entering Dired::        
  64. * Editing in Dired::        
  65. * Listing Files in Dired::    
  66. * Marking Files in Dired::    
  67. * Mark-using Commands::        
  68. * Commands That Do Not Use Marks::  
  69. * Subdirectories in Dired::    
  70. * Hiding Directories in Dired::     
  71. * Acknowledgement::        
  72. * Dired Customization::        
  73.  
  74. Mark-using Commands
  75.  
  76. * Copy and Move Into a Directory::  
  77. * Renaming and More With Regexps::  
  78. * Other File Creating Commands::  
  79. * Deleting Files With Dired::    
  80. * Dired Shell Commands::    
  81. * Compressing and Uncompressing::  
  82. * Changing File Attributes::    
  83. * Loading and Byte-compiling Emacs Lisp Files::     
  84. * Printing the Marked Files::    
  85.  
  86. Dired Customization
  87.  
  88. * Dired User Options::        
  89. * Dired Configuration::        
  90. * Dired Hooks::            
  91.  
  92. Tree Dired Extra features
  93.  
  94. * Tree Dired Extra Features::    
  95. * Dired Minibuffer History::    
  96. * Inserting All Marked Subdirectories::     
  97. * Dynamic Dired Markers::    
  98. * Omitting Files in Dired::    
  99. * Advanced Dired Mark Commands::  
  100. * Virtual Dired::        
  101. * Multiple Dired Directories::    
  102. * Dired Local Variables::    
  103. * Making Relative Symbolic Links in Dired::  
  104. * Letting Dired Guess What Shell Command to Apply::  
  105. * dired-trns.el::        Filename Transformers for Dired Shell Commands
  106. * dired-cd.el::            Changing the Working Directory for Dired Shell Commands
  107. * dired-nstd.el::        Nested Dired format
  108. * find-dired.el::        Feeding Find Output to Dired
  109.  
  110. Dired Internals
  111.  
  112. * Tree Dired Internals::    
  113. * Dired Mark Internals::    
  114.  
  115.  
  116. 
  117. File: dired.info,  Node: Dired,  Next: Tree Dired Extra,  Prev: Top,  Up: Top
  118.  
  119. Dired, the Directory Editor
  120. ***************************
  121.  
  122.    Dired makes it easy to delete or visit many of the files in a
  123. single directory (and possibly its subdirectories) at once.  It makes
  124. an Emacs buffer containing a listing of the directories, in the
  125. format of `ls -lR'.  You can use the normal Emacs commands to move
  126. around in this buffer, and special Dired commands to operate on the
  127. files.  You can run shell commands on files, visit, compress, load or
  128. byte-compile them, change their file attributes and insert
  129. subdirectories into the same buffer.  You can "mark" files for later
  130. commands or "flag" them for deletion, either file by file or all
  131. files matching certain criteria.
  132.  
  133. * Menu:
  134.  
  135. * Entering Dired::        
  136. * Editing in Dired::        
  137. * Listing Files in Dired::    
  138. * Marking Files in Dired::    
  139. * Mark-using Commands::        
  140. * Commands That Do Not Use Marks::  
  141. * Subdirectories in Dired::    
  142. * Hiding Directories in Dired::     
  143. * Acknowledgement::        
  144. * Dired Customization::        
  145.  
  146.  
  147. 
  148. File: dired.info,  Node: Entering Dired,  Next: Editing in Dired,  Prev: Dired,  Up: Dired
  149.  
  150. Entering Dired
  151. ==============
  152.  
  153. To invoke Dired, do `C-x d' or `M-x dired'.  The command reads a
  154. directory name or wildcard file name pattern as a minibuffer argument
  155. just like the `list-directory' command, `C-x C-d'. Invoking Dired
  156. with a prefix argument lets you enter the listing switches for the
  157. directory.
  158.  
  159.    Dired assumes you meant to use a wildcard if the last component of
  160. the name is not an existing file.  Note that only the last pathname
  161. component may contain wildcards.  With wildcards it uses the shell to
  162. do the filename globbing, whereas usually it calls `ls' directly. 
  163. Because of this, you might have to quote characters that are special
  164. to the shell.  For example, to dired all auto-save files in your
  165. `~/mail/' directory, use `~/mail/\#*' as argument to Dired.  Note the
  166. backslash needed to quote `#' (at the beginning of a word) to the
  167. shell.
  168.  
  169.    Where `dired' differs from `list-directory' is in naming the
  170. buffer after the directory name or the wildcard pattern used for the
  171. listing, and putting the buffer into Dired mode so that the special
  172. commands of Dired are available in it.  The variable
  173. `dired-listing-switches' is a string used as an argument to `ls' in
  174. making the directory; this string must contain `-l'.  Most other
  175. switches are also allowed, especially `-F', `-i' and `-s'.  For the
  176. `-F' switch to work you may have to set the variable
  177. `dired-ls-F-marks-symlinks', depending on what kind of `ls' program
  178. you are using.  *Note Dired Configuration::.
  179.  
  180.    When a Dired buffer for the given directory already exists, it is
  181. simply selected without refreshing it.  You can type `g' if you
  182. suspect it is out of date.
  183.  
  184.    To display the Dired buffer in another window rather than in the
  185. selected window, use `C-x 4 d' (`dired-other-window)' instead of `C-x
  186. d'.
  187.  
  188.  
  189. 
  190. File: dired.info,  Node: Editing in Dired,  Next: Listing Files in Dired,  Prev: Entering Dired,  Up: Dired
  191.  
  192. Editing in Dired
  193. ================
  194.  
  195. Once the Dired buffer exists, you can switch freely between it and
  196. other Emacs buffers.  Whenever the Dired buffer is selected, certain
  197. special commands are provided that operate on files that are listed. 
  198. The Dired buffer is "read-only", and inserting text in it is not
  199. useful, so ordinary printing characters such as `d' and `x' are used
  200. for Dired commands, and digits are prefix arguments.
  201.  
  202.    The file described by the line that point is on is called the
  203. "current file".  The directory this file is in is the "current Dired
  204. directory".  Note that there may be several directories in one Dired
  205. buffer as long as they belong to the same tree.  The top level
  206. directory, the "root" of the tree, is used as the working directory
  207. of the buffer.
  208.  
  209.    Some or all directories can be "hidden", leaving only their
  210. headerlines visible, and exlcuding their files from Dired operations.
  211.  
  212.    Files can be "marked" for later commands.  Marking means putting a
  213. special character, usually `*', in the first column of the file line.
  214. To "flag" a file means to mark it for later deletion.  This special
  215. case of "marking" is distinguished so that you do not delete files
  216. accidentally.  Internally, the only difference between marking and
  217. flagging is the character used to mark the file: `*' (an asterisk)
  218. for a marked file, and `D' for files flagged for deletion.
  219.  
  220.    Most Dired commands operate on the "marked" files and default to
  221. the current file.  They are the "mark-using" commands.  Deleting is
  222. the only mark-using command that does not default to the current file.
  223.  
  224.    Dired buffers "know" about each other.  For example, copying from
  225. DIR1 into DIR2 will update DIR2's Dired buffer(s).  When you move
  226. files or directories, file and dired buffers are kept up to date and
  227. refer to the new location.  But Dired only knows about files changed
  228. by itself, not by other parts of Emacs or programs outside Emacs.
  229.  
  230.    All the usual Emacs cursor motion commands are available in Dired
  231. buffers.  Some special purpose commands are also provided.  The keys
  232. `C-n' and `C-p' are redefined so that they try to position the cursor
  233. at the beginning of the filename on the line, rather than at the
  234. beginning of the line.
  235.  
  236.    For extra convenience, SPC and `n' in Dired are equivalent to
  237. `C-n'.  `p' is equivalent to `C-p'.  Moving by lines is also done so
  238. often in Dired that it deserves to be easy to type.  DEL (move up and
  239. unflag) is often useful simply for moving up.
  240.  
  241.  
  242. 
  243. File: dired.info,  Node: Listing Files in Dired,  Next: Marking Files in Dired,  Prev: Editing in Dired,  Up: Dired
  244.  
  245. Listing Files in Dired
  246. ======================
  247.  
  248. Initially the Dired buffer shows the directory you selected.  The
  249. first line shows the full directory name.  It is an example of a
  250. "headerline" of a directory.  Note that it is terminated by a colon
  251. (`:') that is not part of the directory name.  The second line
  252. usually displays the total size of all files in the directory or the
  253. wildcard used.  Both are examples of "non-file lines".  Applying a
  254. command to a non-file line signals an error.  The other lines of the
  255. directory, called the "file lines", show information about each file
  256. such as permission bits, size and date of last modification, and the
  257. name of the file.
  258.  
  259.    For example, the listing
  260.  
  261.        /home/sk/lib/emacs/lisp:
  262.        total 4973
  263.        -rw-r--r--   1 sk       users      231608 Feb  6 16:58 ChangeLog
  264.        drwxr-sr-x   2 sk       users        2048 Feb  6 11:07 RCS
  265.        -r--r--r--   1 sk       users      141389 Feb  6 10:45 dired.el
  266.        -r--r--r--   1 sk       users      113033 Feb  5 16:21 dired.texi
  267.        ...
  268.      
  269.        /home/sk/lib/emacs/lisp/RCS:
  270.        total 4798
  271.        -r--r--r--   1 sk       users      231748 Feb  6 16:59 dired.texi,v
  272.        -r--r--r--   1 sk       users      763898 Feb  6 10:45 dired.el,v
  273.        ...
  274.  
  275.     has a headerline for the `lisp' directory, a total line saying
  276. there are 4973 K in all the files of that directory (your `ls'
  277. program may use units of blocks instead), and several file lines. 
  278. After that, a headerline for the `RCS' subdirectory with its total
  279. line and its files follows.
  280.  
  281.    Here is an example of a wildcard listing:
  282.  
  283.        /home/sk/lib/emacs/lisp:
  284.        wildcard dired*
  285.        -rw-r--r--   1 sk       users      113036 Feb  6 16:59 dired.texi
  286.        -r--r--r--   1 sk       users       81267 Feb  6 16:29 dired.elc
  287.        -r--r--r--   1 sk       users       38436 Feb  6 16:28 dired-x.elc
  288.        -r--r--r--   1 sk       users       60258 Feb  6 16:27 dired-x.el
  289.        -r--r--r--   1 sk       users      141389 Feb  6 10:45 dired.el
  290.        ...
  291.  
  292.     Since `ls' does not provide a total count when called with a
  293. wildcard argument, the second line now gives instead the wildcard
  294. used, here `dired*'.  If there would have been a directory matching
  295. the wildcard, e.g. a `dired/' subdirectory, its file line would be
  296. shown, but it would not have been expanded automatically.
  297.  
  298.    Filenames may have embedded and trailing (but not leading) spaces.
  299. Leading spaces are not recognized because different `ls' programs
  300. differ in the amount of whitespace the insert before the filename. 
  301. Filenames may *not* contain newlines or `^M''s.  You can get away
  302. with `^M''s in filenames if you do
  303.  
  304.          (setq selective-display nil)
  305.  
  306. in the Dired buffer (inside `dired-mode-hook', *Note Dired Hooks::.).
  307. But this also disables the `=' and `$' hiding commands, *Note Hiding
  308. Directories in Dired::.
  309.  
  310.    Other unprintable characters than `^M' or newline (`^J') in
  311. filenames are no problem for Dired.  But your `ls' program may not
  312. output them correctly (e.g., replacing all unprintable characters
  313. with a question mark `?').  Dired can do nothing if `ls' suppresses
  314. information about the filenames.  But some (System V derived) `ls'
  315. programs have a `-b' switch to quote control characters, e.g.  `\n'
  316. for a newline character, or `\007' for a ASCII bell character
  317. (`C-g'), so you might want to add `b' to your switches (see below). 
  318. Dired translates the quoted control character escapes when a `-b'
  319. switch was used.  The `-b' switch is the recommended method to cope
  320. with funny filenames containing newlines or leading spaces.  But
  321. check if your `ls' understands `-b' and really quotes newlines and
  322. spaces.  Dired is known to work with GNU `ls -b', but other `ls -b'
  323. don't quote spaces, so leading spaces still don't work with these
  324. `ls' programs.
  325.  
  326.    The appearance of the listing is determined by the listing
  327. switches used, for example whether you display or suppress `.' files
  328. with the `-a' and `-A' switches, use the `-F' switch to tag filenames
  329. etc.  It may additionally be restricted to certain files if you used
  330. wildcards to display only those files matching a shell file wildcard.
  331.  
  332.    Dired has commands that change the listing switches for this buffer.
  333. They are mainly used to set the sort mode, but can also be used to
  334. change other formatting options.  The buffer is automatically
  335. refreshed after the switches are changed to let the new format take
  336. effect.
  337.  
  338.    The default value for the switches comes from the variable
  339. `dired-listing-switches'; a prefix argument to `dired' can be use to
  340. determine the switches used for a specific buffer.  *Note Entering
  341. Dired::.  Each Dired buffer has its own value for the switches,
  342. stored in the variable `dired-actual-switches'.
  343.  
  344.    The Dired modeline displays `by name' or `by date' to indicate the
  345. sort mode.  It uses the regexps in the variables
  346. `dired-sort-by-date-regexp' and `dired-sort-by-name-regexp' to decide
  347. what should be displayed.  If neither of the regexps matches, the
  348. listing switches are displayed literally.  You can use this to always
  349. display the literal switches instead of `by name' or `by date': set
  350. them to a regexp that never matches any listing switches, for example
  351. `^$'.
  352.  
  353.    Most `ls' programs can only sort by name (without `-t') or by date
  354. (with `-t'), nothing else.  GNU `ls' additionally sorts on size with
  355. `-S', on extension with `-X', and unsorted (in directory order) with
  356. `-U'.  So anything that does not contain these is sort "by name". 
  357. However, this is configurable in the variable
  358. `dired-ls-sorting-switches', which defaults to `"SXU"'.  It contains
  359. a string of `ls' switches (single letters) except `t' that influence
  360. sorting.  It is consulted at load time, so if you redefine it, you
  361. must do it before Dired is loaded.
  362.  
  363. `s'
  364.      (`dired-sort-toggle-or-edit') Toggle between sort by name/date
  365.      and refresh the dired buffer.  With a prefix argument you can
  366.      edit the current listing switches instead.
  367.  
  368.    After some time the listing may become out of date because of
  369. actions by other programs than Dired.  You can refresh the complete
  370. Dired buffer from disk or only refresh the lines of certain files or
  371. a single file.
  372.  
  373. `l'
  374.      (`dired-do-redisplay') Redisplay all marked (or, with a prefix
  375.      argument, the next N) files.  As always, if no files are marked,
  376.      the current file is used.
  377.  
  378.      If on a headerline, redisplay that subdirectory.  In that case,
  379.      a prefix arg lets you edit the `ls' switches used for the new
  380.      listing.
  381.  
  382. `g'
  383.      (`revert-buffer') The `g' command in Dired ultimately runs
  384.      `dired-revert' to reinitialize the buffer from the actual disk
  385.      directory (or directories).  All marks and flags in the Dired
  386.      buffer are restored, except of course for files that have
  387.      vanished.  Hidden subdirectories are hidden again.  *Note Hiding
  388.      Directories in Dired::.
  389.  
  390. `k'
  391.      (`dired-kill-line-or-subdir') Kill this line (but not this file).
  392.      Optional prefix argument is a repeat factor.  If file is
  393.      displayed as expanded subdirectory, kill that as well.
  394.  
  395.      If on a subdirectory line, kill that subdirectory.  Reinsert it
  396.      with `i' (`dired-maybe-insert-subdir'), *Note Subdirectories in
  397.      Dired::.
  398.  
  399.      Killing a file line means that the line is removed from the
  400.      Dired buffer.  The file is not touched, and the line will
  401.      reappear when the buffer is refreshed (using `g',
  402.      `revert-buffer').  A killed subdirectory will not reappear after
  403.      reverting the buffer, since `g' only list those subdirectories
  404.      that were listed before.
  405.  
  406. `M-k'
  407.      (`dired-do-kill') Kill all marked lines (not files).  With a
  408.      prefix argument, kill all lines not marked or flagged.
  409.  
  410.      (For file marking, *Note Marking Files in Dired::.)
  411.  
  412. `C-x u'
  413. `C-_'
  414.      (`dired-undo') Undo in a Dired buffer.  This doesn't recover
  415.      lost files, it is just normal undo with a temporarily writable
  416.      buffer.  You can use it to recover marks, killed lines or
  417.      subdirs.  In the latter case, you have to do `M-x
  418.      dired-build-subdir-alist' to parse the buffer again for the new
  419.      subdirectory list.
  420.  
  421.  
  422. 
  423. File: dired.info,  Node: Marking Files in Dired,  Next: Mark-using Commands,  Prev: Listing Files in Dired,  Up: Dired
  424.  
  425. Marking Files in Dired
  426. ======================
  427.  
  428. This section describes commands to mark and unmark single files, and
  429. commands to mark several files at once if they match certain criteria.
  430. There also is a command to move to the next marked file.
  431.  
  432.    As always, hidden subdirs are not affected.  *Note Hiding
  433. Directories in Dired::.
  434.  
  435. `m'
  436.      (`dired-mark-subdir-or-file') If on a file line, mark the
  437.      current file.  A numeric argument tells how many next or
  438.      previous files to mark.  If on a subdirectory header line, mark
  439.      all its files except `.' and `..'.
  440.  
  441. `u'
  442.      (`dired-unmark-subdir-or-file') Like `m', only unmarking instead
  443.      of marking.
  444.  
  445. `DEL'
  446.      (`dired-backup-unflag') Move up lines and remove flags there. 
  447.      Optional prefix argument says how many lines to unflag; default
  448.      is one line.
  449.  
  450. `M-DEL'
  451.      (`dired-unflag-all-files') Remove a specific or all flags from
  452.      every file.  With an argument, queries for each marked file. 
  453.      Type your help character, usually `C-h', at that time for help.
  454.  
  455. `*'
  456.      (`dired-mark-executables') Mark all executable files.  With
  457.      prefix argument, unflag all those files.
  458.  
  459. `@'
  460.      (`dired-mark-symlinks') Mark all symbolic links.  With prefix
  461.      argument, unflag all those files.
  462.  
  463. `/'
  464.      (`dired-mark-directories') Mark all directory files except `.'
  465.      and `..'.  With prefix argument, unflag all those files.
  466.  
  467. `%m'
  468.      (`dired-mark-files-regexp') Mark all files matching REGEXP for
  469.      use in later commands.  A prefix argument means to unmark them
  470.      instead.  `.' and `..' are never marked.
  471.  
  472.      The match is against the non-directory part of the filename. 
  473.      Use `^' and `$' to anchor matches.  Exclude subdirs by hiding
  474.      them.
  475.  
  476.      This is an Emacs regexp, not a shell wildcard.    E.g., use `\.o$'
  477.      for object files - just `.o' will mark more than you might think.
  478.      By default, the match is case sensitive (just like filenames),
  479.      since `case-fold-search' is set to `nil' in Dired buffers.
  480.  
  481. `M-}'
  482.      (`dired-next-marked-file') Move to the next marked file,
  483.      wrapping around the end of the buffer.
  484.  
  485. `M-{'
  486.      (`dired-prev-marked-file') Move to the previous marked file,
  487.      wrapping around the beginning of the buffer.
  488.  
  489.  
  490. 
  491. File: dired.info,  Node: Mark-using Commands,  Next: Commands That Do Not Use Marks,  Prev: Marking Files in Dired,  Up: Dired
  492.  
  493. Mark-using Commands
  494. ===================
  495.  
  496.    Most Dired commands operate on the "marked" files and default to
  497. the current file.  They are the "mark-using" commands.  Deleting is
  498. the only mark-using command that does not default to the current file.
  499.  
  500.    Mark-using Dired commands treat a numeric argument as a repeat
  501. count, meaning to act on the files of the next few lines instead of
  502. on the marked files.  That is, when you give a prefix argument the
  503. marks are not consulted at all.  A negative argument means to operate
  504. on the files of the preceding lines.  Either set of files is called
  505. "marked files" below, whether they really come from marks or from a
  506. prefix argument.  The prompt of a mark-using command always makes
  507. clear which set of files is operated upon: it mentions either the
  508. marker character `*' or the `next N' files, where a negative N really
  509. means the previous -N files.
  510.  
  511.    Thus you can use a prefix argument of `1' to apply a command to
  512. just the current file, e.g, if you don't want to disturb the other
  513. files you marked.  As digits are prefix arguments in Dired, simply
  514. type `1' followed by the command.
  515.  
  516.    Many mark-using commands treat a prefix of N=0 specially, since it
  517. would otherwise be a no-op.
  518.  
  519.    All mark-using commands display a list of files for which they
  520. failed.  Type `W' to see why a (mark-using or other) command failed. 
  521. Error messages from shell commands (`stderr') cannot be redirected
  522. separately and goes together with the usual output (`stdout').
  523.  
  524. * Menu:
  525.  
  526. * Copy and Move Into a Directory::  
  527. * Renaming and More With Regexps::  
  528. * Other File Creating Commands::  
  529. * Deleting Files With Dired::    
  530. * Dired Shell Commands::    
  531. * Compressing and Uncompressing::  
  532. * Changing File Attributes::    
  533. * Loading and Byte-compiling Emacs Lisp Files::     
  534. * Printing the Marked Files::    
  535.  
  536.  
  537. 
  538. File: dired.info,  Node: Copy and Move Into a Directory,  Next: Renaming and More With Regexps,  Prev: Mark-using Commands,  Up: Mark-using Commands
  539.  
  540. Copy, Move etc. Into a Directory
  541. --------------------------------
  542.  
  543. This section explains commands that create a new file for each marked
  544. file, for example by copying (`c') or moving (`r') files.  They
  545. prompt in the minibuffer for a TARGET argument, usually the target
  546. directory in which the new files are created.  But if there is but
  547. one marked file, the target may also be a plain file.  (Otherwise you
  548. could not simply rename or copy a single file within the same
  549. directory.) Even with one marked file the target may still be an
  550. (existing) directory.
  551.  
  552.    The target prompt displays a "default target" that will be used if
  553. you just type `RET'.  Normally the default target is the current
  554. Dired directory, so if you want to copy into some specific
  555. subdirectory, move point into that subdirectory before typing `c'. 
  556. But if there is a Dired buffer in the next window, and
  557. `dired-dwim-target' is true, its current Dired directory is used. 
  558. This makes it easy to copy from one Dired buffer into another if both
  559. are displayed.  On the other hand you have to use `C-x 1' to make
  560. other Dired buffers vanish if you do not want to have them as default
  561. targets.  To make Dired never look at the next window, set the
  562. variable `dired-dwim-target' to nil (`dwim' means Do What I Mean). 
  563. *Note Dired User Options::, on how to set cutomization variables.
  564.  
  565.    As a general rule, Dired will not let you remove or overwrite a
  566. file without explicit confirmation.  Dired asks you for each existing
  567. target file whether or not to overwrite just this file (answer `y' or
  568. `n') or all remaining files (answer `!').  You can also type your
  569. help character, usually `C-h', at that time for help.
  570.  
  571. `c'
  572.      (`dired-do-copy') Copy the marked (or next N) files into a
  573.      directory, or copy a single file.
  574.  
  575.      Thus, a zero prefix argument (N-0) copies nothing.  But it
  576.      toggles the variable `dired-copy-preserve-time'.
  577.        *Note Dired User Options::, on how to set customization
  578.      variables.
  579.  
  580. `r'
  581.      (`dired-do-move') Move the marked files into a directory.  If
  582.      there is just one marked file, rename that file.  As the marked
  583.      files default to the current file, this can also be used to
  584.      simply rename the current file.
  585.  
  586.      Dired silently changes the visited file name of buffers
  587.      associated with moved files so that they refer to the new
  588.      location of the file.
  589.  
  590.      When a directory is renamed, its headerlines in Dired buffers
  591.      are updated, and any buffers visiting affected files have their
  592.      visited file name changed to refer to the new location.  Their
  593.      buffer name is changed if no buffer with such a name already
  594.      exists.  Affected files are all those which contain the
  595.      directory somewhere in their absolute path name.
  596.  
  597.      A zero prefix arguments does not move any files, but toggles the
  598.      variable `dired-dwim-target'.
  599.  
  600. `H'
  601.      (`dired-do-hardlink') Make hard links from the target directory
  602.      to each marked file.
  603.  
  604. `Y'
  605.      (`dired-do-symlink') Make symbolic links from the target
  606.      directory to each marked file.
  607.  
  608.    Linking is very similar to copying in that new files are created
  609. while the old files stay.  If you want each newly copied or linked
  610. file to be marked with the same marker that its original has, set the
  611. variables `dired-keep-marker-copy', `dired-keep-marker-hardlink' or
  612. `dired-keep-marker-symlink' to `t'.  Set them to `nil' to not give
  613. these newly created files marks.  The default is to mark them with
  614. `C', `H' and `Y', respectively.
  615.  
  616.    Moving differs from copying and linking in that the old file is
  617. removed as part of the creation of the new file.  Thus it makes sense
  618. to set the variable `dired-keep-marker-move' to `t' (the default) so
  619. that moved files "take their markers with them".
  620.  
  621.  
  622. 
  623. File: dired.info,  Node: Renaming and More With Regexps,  Next: Other File Creating Commands,  Prev: Copy and Move Into a Directory,  Up: Mark-using Commands
  624.  
  625. Renaming (and More) With Regexps
  626. --------------------------------
  627.  
  628.    A second class of Commands uses regular expressions to construct a
  629. new filename from each marked file. *Note Syntax of Regular
  630. Expressions: (emacs)Regexps.  The commands to make new names by
  631. regexp conversion are the same as those to make them in another
  632. directory, except that they share a prefix char, `%'.
  633.  
  634. `%r'
  635.      (`dired-rename-regexp') Rename files with regexps
  636.  
  637. `%c'
  638.      (`dired-do-copy-regexp') Copy files with regexps.
  639.  
  640. `%H'
  641.      (`dired-do-hardlink-regexp') Make hard links with regexps.
  642.  
  643. `%Y'
  644.      (`dired-do-symlink-regexp') Make symbolic links with regexps.
  645.  
  646.    These commands prompt in the minibuffer for a REGEXP and a
  647. NEWNAME.  For each marked file matching REGEXP, a new filename is
  648. constructed from NEWNAME.  The match can be anywhere in the file
  649. name, it need not span the whole filename.  Use `^' and `$' to anchor
  650. matches that should span the whole filename.  Only the first match in
  651. the filename is replaced with NEWTEXT.  (It would be easy to change
  652. this to replace all matches, but probably harder to use.)
  653.  
  654.    `\&' in NEWNAME stands for the entire text being replaced.  `\D'
  655. in NEWNAME, where D is a digit, stands for whatever matched the D'th
  656. parenthesized grouping in REGEXP.  As each match is found, the user
  657. must type a character saying whether or not to apply the command to
  658. just this file (`y' or `n') or to all remaining files(`!').  For help
  659. type your help character, usually `C-h', at that time.
  660.  
  661.    For example, if you want to rename all `.lsp' files to `.el'
  662. files, type first `%m' with `\.lsp$' as regexp to mark all `.lsp'
  663. files.  Then type `%r' with `\.lsp$' and `.el' as REGEXP and NEWTEXT
  664. arguments.  Dired will prompt you for each file to be renamed.
  665.  
  666.    Or to append `.old' to all marked files, use `%r' `$' `RET' `.old'
  667. `RET', replacing the empty string at the end of each file name with
  668. `.old'.
  669.  
  670.    You can use the regexp `\(.+\)\.\(.+\)$' to make the basename as
  671. `\1' and the extension as `\2' available in NEWTEXT.
  672.  
  673.    With a zero prefix arg, renaming by regexp affects the complete
  674. pathname.  Usually only the non-directory part of file names is used
  675. and changed, and renaming only takes place within the current
  676. directory.  The zero prefix argument can be used to change the
  677. directory part as well.
  678.  
  679.    Often you will want to apply the command to all files matching the
  680. same REGEXP that you use in the command.  Simply use the `%m' command
  681. with REGEXP as argument, which will then also be the default for the
  682. next regexp using command. For example, to remove a `V17I12-' prefix
  683. from several filenames, use `%m' `^V17I12-' `RET' `%r' `RET' `RET',
  684. in effect replacing the prefix with the empy string.
  685.  
  686.  
  687. 
  688. File: dired.info,  Node: Other File Creating Commands,  Next: Deleting Files With Dired,  Prev: Renaming and More With Regexps,  Up: Mark-using Commands
  689.  
  690. Other File Creating Commands
  691. ----------------------------
  692.  
  693.    Commands to change the case of file names:
  694.  
  695. `%u'
  696.      (`dired-upcase') Rename each marked file to upper case.
  697.  
  698. `%l'
  699.      (`dired-downcase') Rename each marked file to lower case.
  700.  
  701.  
  702. 
  703. File: dired.info,  Node: Deleting Files With Dired,  Next: Dired Shell Commands,  Prev: Other File Creating Commands,  Up: Mark-using Commands
  704.  
  705. Deleting Files With Dired
  706. -------------------------
  707.  
  708. Deleting is a special mark-using command.  It uses a special marker,
  709. `D', and does not default to the current file if no files are marked
  710. to prevent accidental deletions.
  711.  
  712.    *Note Dired Customization::, variable `dired-del-marker' to make
  713. deleting behave exactly like any mark-using command.
  714.  
  715. `d'
  716.      (`dired-flag-file-deleted') Flag this file for deletion.  If on
  717.      a subdirectory headerline, mark all its files except `.' and `..'.
  718.  
  719. `u'
  720.      (`dired-unmark-subdir-or-file') Remove deletion-flag on this line.
  721.  
  722. `DEL'
  723.      (`dired-backup-unflag') Remove deletion-flag on previous line,
  724.      moving point to that line.
  725.  
  726. `%d'
  727.      (`dired-flag-regexp-files') Flag all files containing the
  728.      specified REGEXP for deletion.
  729.  
  730.      The match is against the non-directory part of the filename. 
  731.      Use `^' and `$' to anchor matches.  Exclude subdirs by hiding
  732.      them.
  733.  
  734.      The special directories `.' and `..' are never flagged.
  735.  
  736. `x'
  737.      (`dired-do-deletions') Delete the files that are flagged for
  738.      deletion (with `D').
  739.  
  740. `X'
  741.      (`dired-do-delete') Delete the `*'-marked (as opposed to the
  742.      `D'-flagged) files.
  743.  
  744. `#'
  745.      (`dired-flag-auto-save-files') Flag all auto-save files (files
  746.      whose names start and end with `#') for deletion (*note
  747.      Auto-Saving: Protection Against Disasters: (emacs)Auto Save.).
  748.  
  749. `~'
  750.      (`dired-flag-backup-files') Flag all backup files (files whose
  751.      names end with `~') for deletion (*note Backup Files:
  752.      (emacs)Backup.).
  753.  
  754. `. (Period)'
  755.      (`dired-clean-directory') Flag excess numeric backup files for
  756.      deletion.  The oldest and newest few backup files of any one
  757.      file are exempt; the middle ones are flagged.
  758.  
  759.    You can flag a file for deletion by moving to the line describing
  760. the file and typing `d' or `C-d'.  The deletion flag is visible as a
  761. `D' at the beginning of the line.  Point is moved to the beginning of
  762. the next line, so that repeated `d' commands flag successive files.
  763.  
  764.    The files are flagged for deletion rather than deleted immediately
  765. to avoid the danger of deleting a file accidentally.  Until you
  766. direct Dired to delete the flagged files, you can remove deletion
  767. flags using the commands `u' and DEL.  `u' works just like `d', but
  768. removes flags rather than making flags.  DEL moves upward, removing
  769. flags; it is like `u' with numeric argument automatically negated.
  770.  
  771.    To delete the flagged files, type `x'.  This command first
  772. displays a list of all the file names flagged for deletion, and
  773. requests confirmation with `yes'.  Once you confirm, all the flagged
  774. files are deleted, and their lines are deleted from the text of the
  775. Dired buffer.  The shortened Dired buffer remains selected.  If you
  776. answer `no' or quit with `C-g', you return immediately to Dired, with
  777. the deletion flags still present and no files actually deleted.
  778.  
  779.    Deletions proceed from the end of the buffer, so if subdirs are in
  780. a natural order in the buffer, it usually works to flag `dir1',
  781. `dir1/dir2' and `dir1/dir2/*' (by typing `d' on the directory
  782. headerlines) and delete everything, including `dir1/dir2' and `dir1'.
  783. Using shell commands (e.g.  `rm -rf') to remove complete directories
  784. may be quicker than having Dired remove each file separately. (*Note
  785. Dired Shell Commands::.)  However, like all actions external to
  786. Dired, this does not update the display.
  787.  
  788.    The `#', `~' and `.' commands flag many files for deletion, based
  789. on their names.  These commands are useful precisely because they do
  790. not actually delete any files; you can remove the deletion flags from
  791. any flagged files that you really wish to keep.
  792.  
  793.    `#' flags for deletion all files that appear to have been made by
  794. auto-saving (that is, files whose names begin and end with `#').  `~'
  795. flags for deletion all files that appear to have been made as backups
  796. for files that were edited (that is, files whose names end with `~').
  797.  
  798.    `.' (Period) flags just some of the backup files for deletion:
  799. only numeric backups that are not among the oldest few nor the newest
  800. few backups of any one file.  Normally `dired-kept-versions' (not
  801. `kept-new-versions'; that applies only when saving) specifies the
  802. number of newest versions of each file to keep, and
  803. `kept-old-versions' specifies the number of oldest versions to keep. 
  804. Period with a positive numeric argument, as in `C-u 3 .', specifies
  805. the number of newest versions to keep, overriding
  806. `dired-kept-versions'.  A negative numeric argument overrides
  807. `kept-old-versions', using minus the value of the argument to specify
  808. the number of oldest versions of each file to keep.
  809.  
  810.  
  811. 
  812. File: dired.info,  Node: Dired Shell Commands,  Next: Compressing and Uncompressing,  Prev: Deleting Files With Dired,  Up: Mark-using Commands
  813.  
  814. Shell Commands on Marked files
  815. ------------------------------
  816.  
  817. You can run arbitrary shell commands on the marked files. If there is
  818. output, it goes to a separate buffer.
  819.  
  820. `!'
  821.      (`dired-do-shell-command') Run a shell command on the marked
  822.      files.
  823.  
  824.    A command string is prompted for in the minibuffer.  The list of
  825. marked files is appended to the command string unless asterisks `*'
  826. indicate the place(s) where the list should go.  Thus,
  827.  
  828.      command -flags
  829.  
  830.    is equivalent to
  831.  
  832.      command -flags *
  833.  
  834.    The filenames are inserted in the order they appear in the buffer.
  835. The file listed topmost in the buffer will be the leftmost in the list.
  836.  
  837.    Currently, there is no way to insert a real `*' into the command.
  838.  
  839.    As with all mark-using commands, if no files are marked or a
  840. specific numeric prefix arg is given, the current or the next N files
  841. are used.  The prompt mentions the file(s) or the marker, as
  842. appropriate.
  843.  
  844.    However, for shell commands, a zero argument is special. It means
  845. to run command on each marked file separately:
  846.  
  847.      cmd * |foo
  848.  
  849.    results in
  850.  
  851.      cmd F1 |foo; ...; cmd FN |foo
  852.  
  853.    Usually
  854.  
  855.      cmd F1 ... FN |foo
  856.  
  857.    would be executed.
  858.  
  859.    No automatic redisplay is attempted because Dired cannot know what
  860. files should be redisplayed for a general shell command.  For
  861. example, a `tar cvf' will not change the marked files at all, but
  862. rather create a new file, while a `ci -u -m'...' *' will probably
  863. change the permission bits of all marked files.
  864.  
  865.    Type `l' to redisplay just the marked files, or `l' on a directory
  866. headerline to redisplay just that directory, or `g' to redisplay all
  867. directories.
  868.  
  869.    The shell command has the top level directory as working
  870. directory, so output files usually are created there instead of in a
  871. subdirectory, which may sometimes be surprising if all files come
  872. from the same subdirectory.  Just remember that an Emacs buffer can
  873. have but one working directory, and this is the top level directory
  874. in Dired buffers.
  875.  
  876.    Examples for shell commands:
  877.  
  878.    * Type `!' and
  879.  
  880.           tar cvf foo.tar
  881.  
  882.      to tar all marked files into a `foo.tar' file.  Dired does not
  883.      know that a new file has been created and you have to type `g'
  884.      to refresh the listing.  If you have several subdirectories in
  885.      your Dired buffer, the names given to `tar' will be relative to
  886.      the top level directory, and the output file `foo.tar' will also
  887.      be created there.
  888.  
  889.      You can use
  890.  
  891.           tar cvf - * | compress -c > foo.tar.Z
  892.  
  893.      as an alternative to immediately compress the tar file.
  894.  
  895.    * Type `0 !' and
  896.  
  897.           uudecode
  898.  
  899.      to uudecode each of the marked files.  Note the use of the zero
  900.      prefix argument to apply the shell command to each file
  901.      separately (uudecode doesn't accept a list of input files). 
  902.      Type `g' afterwards to see the created files.
  903.  
  904.    * Type `0 !' and
  905.  
  906.           uuencode * * >*.uu
  907.  
  908.      to uuencode each of the marked files, writing into a
  909.      corresponding `.uu' file.  Note the use of the zero prefix
  910.      argument to apply the shell command to each file separately. 
  911.      Type `g' afterwards to see the created `.uu' files.
  912.  
  913.    * Type `1 !' and
  914.  
  915.           mail joe@somewhere <*
  916.  
  917.      to mail the current file (note the prefix argument `1') to user
  918.      `joe@somewhere'.
  919.  
  920.    * Here is a Dired shell command to execute the current file,
  921.      assuming no other files are marked (else just give the prefix
  922.      `1' to `!'):
  923.  
  924.           ./*
  925.  
  926.      which will be expanded to `./CMD', thus CMD will be executed.. 
  927.      (Just `./' would be expanded to `./ CMD', with an intervening
  928.      `SPC'.)  This will work even if you don't have `.' in your
  929.      `$PATH'.  If `.' is in your path (not a good idea, as you will
  930.      find out if you dired a directory containing a file named `ls'),
  931.      a single `SPC' as command would also work.
  932.  
  933.  
  934. 
  935. File: dired.info,  Node: Compressing and Uncompressing,  Next: Changing File Attributes,  Prev: Dired Shell Commands,  Up: Mark-using Commands
  936.  
  937. Compressing and Uncompressing
  938. -----------------------------
  939.  
  940. You can compress or uncompress the marked files.  Dired refuses to
  941. compress files ending in `.Z' (which are already compressed) or
  942. symbolic links (the link would be overwritten by a plain, compressed
  943. file) and to uncompress files not ending in `.Z'.
  944.  
  945. `C'
  946.      (`dired-do-compress') Compress the marked files.
  947.  
  948. `U'
  949.      (`dired-do-uncompress') Uncompress the marked files.
  950.  
  951.  
  952. 
  953. File: dired.info,  Node: Changing File Attributes,  Next: Loading and Byte-compiling Emacs Lisp Files,  Prev: Compressing and Uncompressing,  Up: Mark-using Commands
  954.  
  955. Changing File Attributes
  956. ------------------------
  957.  
  958. You can change the file attributes (mode, group, owner) of marked
  959. files.
  960.  
  961. `M'
  962.      (`dired-do-chmod') Change the mode (also called "permission
  963.      bits") of the marked files.  This calls the `chmod' program,
  964.      thus symbolic modes like `g+w' are allowed.
  965.  
  966.      Multiple switches like `-fR g+w' are not understood, though. 
  967.      Use `!' (`dired-do-shell-command') for that.
  968.  
  969. `G'
  970.      (`dired-do-chgrp') Change the group of the marked files.
  971.  
  972. `O'
  973.      (`dired-do-chown') Change the owner of the marked files.  This
  974.      usually works for the superuser only.  It uses the program in
  975.      the variable `dired-chown-program' to do the change.
  976.  
  977.  
  978. 
  979. File: dired.info,  Node: Loading and Byte-compiling Emacs Lisp Files,  Next: Printing the Marked Files,  Prev: Changing File Attributes,  Up: Mark-using Commands
  980.  
  981. Loading and Byte-compiling Emacs Lisp Files
  982. -------------------------------------------
  983.  
  984. You can load and byte-compile GNU Emacs Lisp files.  Errors are
  985. caught and reported after all files have been processed.
  986.  
  987. `L'
  988.      (`dired-do-load') Load the marked elisp files.
  989.  
  990. `B'
  991.      (`dired-do-byte-compile') Byte compile the marked elisp files.
  992.  
  993.  
  994. 
  995. File: dired.info,  Node: Printing the Marked Files,  Prev: Loading and Byte-compiling Emacs Lisp Files,  Up: Mark-using Commands
  996.  
  997. Printing the Marked Files
  998. -------------------------
  999.  
  1000. `P'
  1001.      (`dired-do-print') Print the marked (or next N) files.  Uses the
  1002.      shell command coming from variables `lpr-command' and
  1003.      `lpr-switches' as default.
  1004.  
  1005.      Since internally this is just a special case of
  1006.      `dired-do-shell-command', you can use `*' and pipes like for
  1007.      shell command, e.g.,
  1008.  
  1009.           (setq lpr-command: "lwf")
  1010.           (setq lpr-switches: '("-l -m * | lpr -Palw"))
  1011.  
  1012.      to print with the shell command `lwf -l -m * | lpr -Palw', where
  1013.      `*' will be substituted by the marked files.  The `lpr-buffer'
  1014.      and `lpr-region' don't know about `*' or `|', though, only Dired
  1015.      does.
  1016.  
  1017.  
  1018. 
  1019. File: dired.info,  Node: Commands That Do Not Use Marks,  Next: Subdirectories in Dired,  Prev: Mark-using Commands,  Up: Dired
  1020.  
  1021. Commands That Do Not Use Marks
  1022. ==============================
  1023.  
  1024. These are commands that visit files.  *Note Visiting Files:
  1025. (emacs)Visiting.
  1026.  
  1027. `f'
  1028.      (`dired-advertised-find-file') Visits the file described on the
  1029.      current line.  It is just like typing `C-x C-f' and supplying
  1030.      that file name.  If the file on this line is a subdirectory, `f'
  1031.      actually causes Dired to be invoked on that subdirectory.
  1032.  
  1033. `o'
  1034.      (`dired-find-file-other-window') Like `f', but uses another
  1035.      window to display the file's buffer.  The Dired buffer remains
  1036.      visible in the first window.  This is like using `C-x 4 C-f' to
  1037.      visit the file.  *Note Multiple Windows: (emacs)Windows.
  1038.  
  1039. `v'
  1040.      (`dired-view-file') Views the file described on this line using
  1041.      `M-x view-file'.  Viewing a file is like visiting it, but is
  1042.      slanted toward moving around in the file conveniently and does
  1043.      not allow changing the file.  *Note View File: (emacs)Misc File
  1044.      Ops.   Viewing a file that is a directory goes to its headerline
  1045.      if it is in this buffer.  Otherwise, it is displayed in another
  1046.      buffer.
  1047.  
  1048. Commands to diff a file:
  1049.  
  1050. `D'
  1051.      (`dired-diff') Compare file at point with another file (default:
  1052.      file at mark), by running the system command `diff'.  The other
  1053.      file is the first file given to `diff'.
  1054.  
  1055. `M-~'
  1056.      (`dired-backup-diff') Diff this file with its backup file.  Uses
  1057.      the latest backup, if there are several numerical backups.  If
  1058.      this file is a backup, diff it with its original.  The backup
  1059.      file is the first file given to `diff'.
  1060.  
  1061. Other commands:
  1062.  
  1063. `+'
  1064.      (`dired-create-directory') Create a directory.
  1065.  
  1066. `W'
  1067.      (`dired-why') Pop up a buffer with error log output from Dired. 
  1068.      All mark-using commands log errors there.  (Standard error from
  1069.      shell commands cannot be logged separately, it goes into the
  1070.      usual shell command output buffer.)  A group of errors from a
  1071.      single command ends with a formfeed, so that you can use `C-x ['
  1072.      (`backward-page') to find the beginning of new error logs that
  1073.      are reported by a command.
  1074.  
  1075.  
  1076. 
  1077. File: dired.info,  Node: Subdirectories in Dired,  Next: Hiding Directories in Dired,  Prev: Commands That Do Not Use Marks,  Up: Dired
  1078.  
  1079. Subdirectories in Dired
  1080. =======================
  1081.  
  1082. Thise section explains how to "insert" (or "expand") subdirectories
  1083. in the same Dired buffer and move around in them.
  1084.  
  1085.    You can display subdirectories in your Dired buffer by using `-R'
  1086. in your Dired listing switches.  But you do not usually want to have
  1087. a complete recursive listing in all your Dired buffers.  So there is
  1088. a command to insert a single directory:
  1089.  
  1090. `i'
  1091.      (`dired-maybe-insert-subdir') Insert this subdirectory into the
  1092.      same Dired buffer.  If it is already present, just move to it
  1093.      (type `l', `dired-do-redisplay' to refresh it).  Else inserts it
  1094.      as `ls -lR' would have done.  With a prefix arg, you may edit
  1095.      the ls switches used for this listing.  You can add `R' to the
  1096.      switches to expand the whole tree starting at this subdirectory.
  1097.      This function takes some pains to conform to `ls -lR' output. 
  1098.      For example, it adds the headerline for the inserted subdirectory.
  1099.  
  1100.      The mark is dropped before moving, so `C-x C-x' takes you back
  1101.      to the old position in the buffer.
  1102.  
  1103.    Dired changes the buffer-local value of the variable
  1104. `page-delimiter' to `"\n\n"', so that subdirectories become pages. 
  1105. Thus, the page moving commands `C-x [' and `C-x ]' (`backward-page'
  1106. and `forward-page') can be used to move to the beginning (i.e., the
  1107. headerlines) of subdirectories.
  1108.  
  1109.    In addition, the following commands move around directory-wise,
  1110. usually putting you on a file line instead of on a headerline.  For a
  1111. mnemonic, note that they all look like rotated versions of each
  1112. other, and that they move in the direction they point to.
  1113.  
  1114. `<'
  1115.      (`dired-prev-dirline') Goto previous directory file line.
  1116.  
  1117. `>'
  1118.      (`dired-next-dirline') Goto next directory file line.
  1119.  
  1120. `^'
  1121.      (`dired-up-directory') Dired parent directory.  Tries first to
  1122.      find its file line, then its header line in this buffer, then
  1123.      its Dired buffer, finally creating a new Dired buffer if
  1124.      necessary.
  1125.  
  1126. `v'
  1127.      (`dired-view-file') When the current file is not a directory,
  1128.      view it.  When file is a directory, tries to go to its
  1129.      subdirectory.
  1130.  
  1131.      This command is inverse to the `^' command and it is very
  1132.      convenient to use these two commands together.
  1133.  
  1134.    The following commands move up and down in the directory tree:
  1135.  
  1136. `M-C-u'
  1137.      (`dired-tree-up') Go up to the parent directory's headerline.
  1138.  
  1139. `M-C-d'
  1140.      (`dired-tree-down') Go down in the tree, to the first
  1141.      subdirectory's headerline.
  1142.  
  1143.    The following commands move forwards and backwards to subdirectory
  1144. headerlines:
  1145.  
  1146. `M-C-n'
  1147.      (`dired-next-subdir') Go to next subdirectory headerline,
  1148.      regardless of level.
  1149.  
  1150. `M-C-p'
  1151.      (`dired-prev-subdir') Go to previous subdirectory headerline,
  1152.      regardless of level.
  1153.  
  1154.  
  1155. 
  1156. File: dired.info,  Node: Hiding Directories in Dired,  Next: Acknowledgement,  Prev: Subdirectories in Dired,  Up: Dired
  1157.  
  1158. Hiding Directories in Dired
  1159. ===========================
  1160.  
  1161. "Hiding" a subdirectory means to make it invisible, except for its
  1162. headerline.  Files inside a hidden subdirectory are never considered
  1163. by Dired.  For example, mark-using commands will not "see" files in a
  1164. hidden directory.  Thus you can use hiding to temporarily exclude
  1165. subdirectories from operations without having to remove the markers.
  1166.  
  1167.    The hiding commands toggle, that is they unhide what was hidden
  1168. and vice versa.
  1169.  
  1170. `$'
  1171.      (`dired-hide-subdir') Hide or unhide the current subdirectory
  1172.      and move to next directory.  Optional prefix argument is a
  1173.      repeat factor.
  1174.  
  1175. `='
  1176.      (`dired-hide-all') Hide all subdirectories, leaving only their
  1177.      header lines.  If there is already something hidden, make
  1178.      everything visible again.  Use this command to get an overview
  1179.      in very deep directory trees or to move quickly to subdirs far
  1180.      away.
  1181.  
  1182.  
  1183. 
  1184. File: dired.info,  Node: Acknowledgement,  Next: Dired Customization,  Prev: Hiding Directories in Dired,  Up: Dired
  1185.  
  1186. Acknowledgement
  1187. ===============
  1188.  
  1189. I would like to thank
  1190.  
  1191.    * Richard Stallman for providing a pre-release version of
  1192.      `dired.el' from Emacs 19, critical comments and many helpful
  1193.      suggestions
  1194.  
  1195.    * Andy Norman for the collaboration that made Tree Dired and
  1196.      ange-ftp such a successful combination
  1197.  
  1198.    * Jamie Zawinski for insisting on and writing nested Dired format,
  1199.      and for lots of other things
  1200.  
  1201.    * Michael Ernst for the "omitting" code and helpful discussion
  1202.      about Dired design
  1203.  
  1204.    * Hans Chalupsky for providing FTP service and writing
  1205.      `dired-trns.el'
  1206.  
  1207.    * Roland McGrath for `find-dired.el' and bug fixes for the diffing
  1208.      commands
  1209.  
  1210.    * Kevin Gallagher for sending me existing VMS Dired fixes
  1211.  
  1212.    * Hal R. Brand for VMS support and porting his old dired fixes to
  1213.      Tree Dired
  1214.  
  1215.    * Hugh Secker-Walker for writing `dired-cd.el'
  1216.  
  1217.    * Tom Wurgler for ideas such as the "dired-jump-back" command
  1218.  
  1219.    * Cengiz Alaettinoglu, who found more bugs in Tree Dired than
  1220.      anybody else (except me)
  1221.  
  1222. and all other beta testers and people who reported bugs or just said
  1223. "thanks".
  1224.  
  1225.  
  1226. 
  1227. File: dired.info,  Node: Dired Customization,  Prev: Acknowledgement,  Up: Dired
  1228.  
  1229. Dired Customization
  1230. ===================
  1231.  
  1232. You can customize Dired by setting some variables in your `~/.emacs'
  1233. file.  Other variables are intended to be configured when Dired is
  1234. installed.  Finally, there are so-called `hook' variables.
  1235.  
  1236. * Menu:
  1237.  
  1238. * Dired User Options::        
  1239. * Dired Configuration::        
  1240. * Dired Hooks::            
  1241.  
  1242.  
  1243.